Fixed get_password Syntax
Replaced loop structure in check_password