Resolving Devise issue