rake db:drop db:create db:migrate
remove blank space
add accepts_nested_attributes_for credential in model operator
remove email for credential that use devise
rails generate devise Credential
remove the comment for used devise as authenticate_credential!