Added name check on register. Name hs to be at least 1 characters long.