removed some unused code
fix for elgg registration status