added 302 redirect to login from homepage