made it redirect to the login in cases without logged in users