Added test for inputting password