Update login & register form with error management