login now works. However, the socket connection is very unstable.  Also the way that the socket connection is set up on doctor's side is incorrect. Need to separate biodata into different ports...