saving values in multiple collections

How to save values in to two different collections from 1 screen. For example i have username and password in one collection and userdetails in other collections. I am saving all the information from 1 screen. how can i do this?
1 person has
this question