added login and verification for admin rights