Added restrictions on message page

for doctor