login and drawin