Added error message for text inputs