Further corrections. The register function is now working properly, but when register closes I want login message to change to say register okay, now log in, but that doesn't work yet