fix php notice when user is empty
add form edit functions
add logger to registry