Added return messages to the register functions