Added backend login functionality

Also various inserts from import parser