Add test for login processing

This checks that given a valid account the user can login successfully.