Started work on backend validation
Adds a comment for explanation