Professor's code changes

changed login.py and register.py