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