edited the login part for both parent and child to be servlet.