Only allow prompt types of input and password.

Add tests for this. Increase code coverage.