fixing format validation security issue from codeclimate