auto login and redirection of routes for login and signup