your if statement is weird.
what if passentry == "" and nameentry == ""
nameentry will never execute nor will the third condition
you should test same variable for different values/ otherwise you should use just ifs, no elifs
what if passentry == "" and nameentry == ""
nameentry will never execute nor will the third condition
you should test same variable for different values/ otherwise you should use just ifs, no elifs