fix #140 add an option to choose input type (e.g "email")

fix for issue #140