Adding some validations required by Vaddin 7 but not by Vaddin 6 ;)