validation and updating of user data