Ensuring security and productivity with BYOD