fix show user not login when submit solution
some minor changes
add default privilege
simple register