refactor home and sign in