Checking if user is registered in the database before allowing user to track