How To Redirect a user if condition is true or false