adding extended login func
adding extended login func