Adding functionality for resetting passwords