Add missing comments
add register and login handler