add register functionality with in-memory impl
add login functionality with in-memory impl