I would like to know which one is correct. "I stayed up studying for the tests or I stayed up study for the tests ."