Removed set_flash_message from session and added gem for cert