Smack create new account

Hey guys, can somebody explain me how to create an account and log into it? We need to log into someone’s account and then create a new one but how to log into that new one? I don’t have any idea how to do this. Please help me!!!