Adds password reset function to model.php