A square is divided into five rectangles, and all the rectangles have the same area. Given that $AB = 1,$ find the side length of the square.