added more authentication stuff