Building exeption for text inputs