Access control and management system for hotels and hospitals