Login feature (part 1).