rough version for adding mail login