Added modularization. The create page has some validation now.