Importing a profile also logs in

Closes #1773