solution was added to validate when no options