Moved model code from authentication TVC into its own class