Enabled the login redirect function

you have to login before any action