login working with dynamic menu