Added sending auth function