Hash generation needs to be improved at some stage
SSL setup, switched to secure only cookie