Made the login work with user/admin rights