Fixed syntax error and added redirect