added features for login, not work yet