Removed code duplication
Implemented serverside change password
Implemented client side change password