minor error changes and fixed issue for create user