Add user login functionality and create user connections