Fixed users saving after changing password and removed useless variables creation