Fixed PHP error when refreshing sign-in page