If you hard reset your phone, Then it will ask you to enter the old google account that you used before the factory reset to identify the real owner of the phone. FRP is automatically turned on when you added a new user on your phone, Once FRP is enabled then it prevents any user to use the phone after the factory reset.