Fixed password change on updating user
Fixed newline character bug