login register functionality and interface