test redirect to login