Improved file check, password is not echoed