process signin logic