Added user login and users are redirected if already logged in