Fixes input validations