testing socket in login view