My take on creating secure code igniter authentication mechanism.