Switched validation functions to pattern match using record structure. Changed allowed methods to return 405 appropriately.