Updated authentication to use byte instead of string