Fixed the authentication bug being caused due to a bug in myPDO class