Fix redirect bug on user edit page and fix downcase url issue