2 formularios diferentes en una página PHP

if($_POST['btn1']){
    //Login
}elseif($_POST['btn2']){
    //Register
}
Said HR