Contains code to perform authentication