fixed bug with creating new user.