Removed Copy/Paste portions and moved login check to security