CHANGED a lot of code on profile and registration