Authentication code changes
Changes to Account controller and model