Updated formatting for key parts of changes to userauthentication.js. Note that changes were only made between lines 1 and 193 of this file.

Fixing formatting.

Updated formatting for key parts of changes to userauthentication.js. Note that changes were only made between lines 1 and 193 of this file.
Changes made to service.js begin on line 300 and end on line 418.

Changes made to service.js begin on line 300 and end on line 418.