Regarding the disciple near the cross, let’s compare the 4 events as mentioned by Mark, Mathew, Luke and John:
1- Mathew 27:
55 And many women were there beholding afar off, which followed Jesus from Galilee, ministering unto him:
56 Among which was Mary Magdalene, and Mary the mother of James and Joses, and the mother of Zebedees children.
57 When the even was come, there came a rich man of Arimathaea, named Joseph, who also himself was Jesus' disciple:
2- Mark 15:
40 There were also women looking on afar off: among whom was Mary Magdalene, and Mary the mother of James the less and of Joses, and Salome;
41 (Who also, when he was in Galilee, followed him, and ministered unto him;) and many other women which came up with him unto Jerusalem.