add checkmail and checklogin