fix registration workflow