fixed reroute to /authentication after key generation