Added check for username and password in get_type()