Loggin function modify
loggin function modify