Improved InputValidator class and validation behaviour in AccountAPI