fixed issue that after log in user model did not save the user id.