adjust logic check in loginIntent method