Logic of PersonalAccount and Login activities