Test login functionality.

With these tests, we ensure that the user must be logged in before
they can edit their profile and that the user is automatically logged
in when their account is created.