fix view register and login