Refactored models, security, viewmodels (removed unused usings, collaborated error handling into one class)