Adding errors messages for input fields