added h:messages to register