temporary hack for login redirecting