Fix some bug for user creation