Using the method sending form parameters rather than form object.The reason is IE will invalidate the form object after putting a login message on the div which contains the form.
Using the method which reloads the page after sending login. This will fix an issue that the search function couldn't get the session id after login.
Change sanparks skin to log in with browser session instead of metacat client session so session can be validated on other pages.