implemented max length of 2 chars in text fields