fix mistakes in user controller