added password reset functionality

still to be made some improvements and to be tested in production