Login register fixes

fixed #421 reset password doesn't work
refactored login / registration
testing of registration / password reset
This is a git mv right? I'm started it unnecessarily conflicts with my other PR.