spring module validation of user input