add login and register feature