Working password checker

icon updates when right password entered, saves password. Checks if
password is right