commit login and register fragment