Change userId to userid in model
Remove the algorithm field to user_credential