Fixed bug that would prevent log in from occurring after registration