implemented login command.