commit login and register servlet