Removed scriptlet for logging in on main page for a better solution