User Login Bug

Fixed a situation where the page would redirect before session data was
written to the browser.