why doesn't it properly check if the input is too long
            if (write(fd[1], password, MAXLINE) == -1) { // Write the password
                perror("write to pipe");
            }

            if ((close(fd[1])) == -1) { // Close the write
                perror("close");
            }

            wait(&status); // wait

            if (WIFEXITED(status) && WEXITSTATUS(status) == 0) { // If it is equal to 0
                printf(SUCCESS);
            } else {
                printf(INVALID);
            }

        } else if (r == 0) {  // If child process
            if ((close(fd[1])) == -1) {  // Close the write
                perror("close");
            }

            if ((dup2(fd[0], fileno(stdin))) == -1) { // So it can read from pipe
                perror("dup2");
                exit(1);
            }

            execl("./validate", "validate", user_id, password, NULL); // Validate

        } else {
            perror("fork");  // Check for failed fork
            exit(1);
        }
    return 0;

    }
}
