Fixed error when creating user