added raw input and password entry
error catching