User controller now works properly.