basic authentication and message sending