added passwordInput convenience function