A little bit refactoring. If user doesn't exist, go to home