Completed Account Management Logic

There was an issue with the update user function for a password.

Function still have to be move to external location
Comments still need to be done