Added 401 redirect to login page