Adding validation to fields. Not sure if it's working yet
Solving conflict and ignoring security warning meanwhile