Changed message handling in constraints
Readded keyword for message
Fixed class cast exception
Replaced validated value with underscore