applying login