Updated user controller functionality.