Fix error 500 when resetting password if bad input.
add server auth test (reset password)
Merge pull request #323 from smoratinos/master

server auth reset password fix + test