Submission: credential were check in wrong dict

Fixed and added regression test