Added authentication api