Internet of Things (IoT) is a paradigm that links real world physical objects with the virtual world providing any time and any where connectivity with one another over the internet. Integration of this technology with smart devices in healthcare domain will cause great impact on saving life. Now-a-days, the healthcare experts are started using the benefits of this technology in their field, thus generating a noteworthy improvement in healthcare communication and sharing of medical information. But the secure communication and sharing of medical information brings many issues in security and leads to privacy violation. Thus, this paper introduces a two-tier authentication mechanism for authenticating the users of the medical information. It checks the identity and legitimacy of the users using random image patterns and secret code provided by the authentication server.