*enhance login function