All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad,
, is His slave and Messenger.
Your ablution, performed the way you mentioned, is valid and your prayer is correct. As for the command of washing hands upon waking up from night's sleep, the view of the majority of the scholars is that this is only recommended and not obligation. However, in the future, you should be keen to wash your hands upon waking up, because there are some scholars who consider this to be obligatory.
Allah knows best.