added title to login redirect
added goto_login() function.