Added Connection authentication

Close #5