checkout and logging user
checkout and logging user