Login authentication and password reset functions to be used with Sentry