Began adding authentication functionality