Trying to figure out how authentication works

i got this to work thanks for the help