fixed some bugs in User crud