add User class
remove debug function
remove unused variable
update to more future-proof hash API\nremove useless use statements from UserService
update authentication system