using correct uri's to redirect in login