added login action
minor changes to insert_canvas
insert_canvas code moved to query.. was in incorrect spot
bit o refactoring