connection example implemented in login