Updated authentication to allow certian things and prohibit others