added login,register and get table methods to ws