register and login file