Fetch username from URL segment, better error handling

Signed-off-by: JWhy <jwhy@jwhy.de>