removed unwanted echo causing trouble. Now registration works fine