fixed issue where login breaks when no info is provided