Validate each field in keypress and allows only allowed characters