Corrected some issues in the User API