adds string length validation and capitalize for name and location fields