add condition for : When textfield is empty, it won't execute the push operation