Controller function
Route/web.php
When I remove the if else statement, it can be return to the pointed page. I can also carry the $usertype to the page with th