Added validation to selection buttons.