Ensure that the user must log in before accessing other activities