TODO: Write realistic test for logging in