login info: make json in view and dump it directly with a safe filter.