little bit of cleanup
redirect to homepage after successful registration
client side userid
added user information to root scope