added password reset functionality