Reverted usercontroller to use body POST params instead of checking the HTTP headers.