Fixed bug where a successful login would not call the following appropriate page