debugging redirect for login