add support for password reset
clean up

modified branch, add support for secret key
clean up