Renamed 'login' module to 'auth' and changed error reporting to match the new documentation.