fixed reg & login file structure