Fixed the password reset login problem..first draft
Fixed the password reset login problem..second draft