added redirect in case of missing name, or invalid name