Test the port in the isReferredFrom method; replace loggin in UserManagerServlet