readPassword function

Read in a password from the user