refactor sign-in and register model folder