Included input validations for search, sync and exit

#42 #43