refactored register function and other stuff
updated user profile at /stream