loginfunc 1st commit