implemented adding user by pressing enter