added validations
set up basic selector functionality