Refactored login feature to not throw an exception when the user cannot be found.