Devise gem in rails app sent email for un confirmed user

Signup with the app it sent me email for activate the account , did not activate the account and click on reset password link it sent the email and then sent me error message , why it is allowing to sent rest password email how we can manage with relevant error messages.

It is no good asking why it does not work unless we have some
information on exactly what went wrong. Concentrate on one problem at
a time, for example why it does not activate the account. What do you
see in the log when the attempt to activate it was made?

Colin