Method for submitting credentials