Modified Login/Logout

Modified the login and logout functions to use jQuery instead of
individual pages