Seniors and students

Contributions in the first 60 days of 2018 can be used for 2017 or 2018.  You were correct to enter them in your 2017 return and carry them forward to 2018.  Assuming that you have enough contribution room for 2018, you have not over contributed.