Fixed redirect_url() for login and logout
Fixed redirect_url() for login and logout