Fixed several user controller errors