PYTHON IF ELSE help pls

Hey fellow Daniweebs,
I would like to present a code to you, which seems to be not working for some reason , kindly help me

name = input("Enter your name:  ")
age = input("Enter your age:  ")

if type(name) != str or type(age) != int:
    print("PLEASE ENTER VALID CREDNTIALS", end ="!!!")

else:
    print("Congrats", name , "!, You are registered")

the output always seems to come out to be " PLEASE ENTER VALID CREDNTIALS!!!" even if i input string and integer values