issue175 inputvalidation

Updated pull-request to implement validation in the input as #175 
Thanks. Changing default value to empty dict solves this issue.

    def prompt_for_config(context, no_input=False, validation={}):