fixed bug about creating new user