Moved valid user check to onResume method.