fixed bug for creating new user