Laddy, don't get too down. Like what has been posted already, you did great selecting an older horse. He sounds like he's testing the waters and should be a simple fix. If you have an experienced friend to help you that would be great, if not find a trainer to come work with you. It shouldn't take much or long.
He needs a refresher that you are the leader, and to mind his manners around you.