add rspec for check user input