server auth reset password fix + test

Fix error 500 if resetting password without email + add tests