added rescue handling for inavlid username to controllers