Use redirect code
Create credential model