Fixed redirect issue

Removed document ready around the window.location redirect statement.

Already logged in sessions should default to redirecting to the
application.