add login as user functionality
fix/complete maps using user's layers, refs #831