createpatient now writes to logincred file
correct patient file is now loaded on login