V1.2 Code Refactoring, Password Resetting and Registering