Added redirect for loged in users.