why do you think you need log in to oem? just use the command line tool

but yet you say you are having all kinds of problems but dont say what they are!