Fixed some authentication stuff