refactored predict_email method
added a command line interface
checking user input is valid in the cli