Adds remaining authentication functionality