added validation + styling for text inputs