added password reset functionality and connected to mailgun API