Moved check for empty credentials from action retriever to mail.