Initial Code (fixed small bugs in password reset)