manage state of user from user form