add servlet to login/register page