Added functionality to allow demo users to login